package com.markus.basic.HashMap注意事项;

import java.util.HashMap;

/**
 * Author:markusZhang
 * Date:Create in 2020/9/14 13:36
 * todo:
 */
public class Demo {
    public static void main(String[] args) {
        HashMap<A,Integer> map = new HashMap<>();
        A a1 = new A(1,"markus");
        A a2 = new A(1,"markus");
        map.put(a1,1);
        Integer integer = map.get(a2);
        System.out.println(integer);
    }
}
